/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.Arrays;
import java.util.Date;

/**
 * <p>Project: jse2302 - Arr2
 * <p>Powered by webrx On 2023-06-14 09:03:52
 * <p>Created by IntelliJ IDEA
 *
 * @author  webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Arr2 {
    public static void main(String[] args) {
        int[] a = new int[]{1, 2, 3};

        //属性 .length  .length()
        System.out.println(a.length);//显示数组对象的元素个数 3

        //使用数组
        int[] b = a;
        b[b.length-1] = 100;
        System.out.println(b[2]);

        System.out.println(a[2]);

        System.out.println(a);
        System.out.println(b);
        System.out.println(a == b);


        var nn = new float[6];
        System.out.println(nn.length);
        System.out.println(nn[0]);
        System.out.println(nn);
        System.out.println(Arrays.toString(nn));
    }
}
